﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TwelveYearCycleOfAnimalEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.TwelveYearCycleOfAnimalEdit" %>
<%@ Import Namespace="Telerik.Web.UI" %>
<owc:OwDetailsView ID="TwelveYearCycleOfAnimalDv" runat="server"  SkinID="OwDetailsView"
    DataSourceID="TwelveYearCycleOfAnimalOds" AutoGenerateRows="False" 
    EnableModelValidation="True" OwNotificationID="" DataKeyNames="TwelveYearCycleOfAnimalID" >
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>

           

                  <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>

                     <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>'
                          
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false"  />

                    
                    </fieldset>

                <fieldset >



                    <legend><asp:Localize ID="Localize1" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Name" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBox" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$OwR:NameNotEmpty %>"
                                    Display="Dynamic" ControlToValidate="NameTxt" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    
                     
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="ThumbImage" />
                            </td>
                            <td>
                                <owc:OwEditor ID="ImagesEditor" runat="server" OwEditorType="OnlyInsertImage" OwBindValue='<%# Bind("ThumbImage") %>' SkinID="OwEditorInsertImageOnly"
                                    Width="450" Height="100" Content=''>
                                </owc:OwEditor>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="Description" />
                            </td>
                            <td>
                                <owc:OwEditor runat="server" ID="DescriptionEditor" Width="650" Height="400" Content='<%# Bind("Description") %>' SkinID="OwEditorBrief">
                                </owc:OwEditor>
                            </td>
                        </tr>
                       
                    </table>
                </fieldset>


            </InsertItemTemplate>
            <EditItemTemplate>

            <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>

                     <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindLanguageValue='<%# Bind("LanguageCode") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>'
                          
                            OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" OwWardLocalityVisible="false"  />

                    
                    </fieldset>

                <fieldset >



                    <legend><asp:Localize ID="Localize1" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Name" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="NameTxt" runat="server" Text='<%# Bind("Name") %>' SkinID="OwTextBox" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$OwR:NameNotEmpty %>"
                                    Display="Dynamic" ControlToValidate="NameTxt" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    
                     
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="ThumbImage" />
                            </td>
                            <td>
                                <owc:OwEditor ID="ImagesEditor" runat="server" OwEditorType="OnlyInsertImage" OwBindValue='<%# Bind("ThumbImage") %>' SkinID="OwEditorInsertImageOnly"
                                    Width="450" Height="100" Content='<%# String.Format("<img src={0} />",Eval("ThumbImage")) %>'>
                                </owc:OwEditor>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR   runat="server" OwText="Description" />
                            </td>
                            <td>
                                <owc:OwEditor runat="server" ID="DescriptionEditor" Width="650" Height="400" Content='<%# Bind("Description") %>' SkinID="OwEditorBrief">
                                </owc:OwEditor>
                            </td>
                        </tr>
                       
                    </table>
                </fieldset>

            </EditItemTemplate>
        </asp:TemplateField>

         <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>

    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="TwelveYearCycleOfAnimalOds" runat="server" 
    DataObjectTypeName="Micronet.OpenWeb.Entity.OwTwelveYearCycleOfAnimalsEntity" 
    DeleteMethod="OwDelete" InsertMethod="OwInsert" 
    OldValuesParameterFormatString="original_{0}" SelectMethod="OwGetEntity" 
    TypeName="Micronet.OpenWeb.Com.BLL.OwTwelveYearCycleOfAnimalsBLL" 
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="twelveYearCycleOfAnimalID" 
            QueryStringField="Id" Type="Int64" />
    </SelectParameters>
</owc:OwObjectDataSource>
